
public class Question 
{
	
	public Question(String title, String text, String imageFile)
	{
		this.title = title;
		this.text = text;
		this.imageFile = imageFile;
	}
	
	public String getTitle()
	{
		return title;
	}
	
	public void setTitle(String title)
	{
		this.title = title;
	}
	
	public String getText()
	{
		return text;
	}
	public void setText(String text)
	{
		this.text = text;
	}
	
	public String getSelection(int i)
	{
		if(i > -1 && i < 4)
		{
			return selection[i];
		}
		else
		{
			return new String();
		}
	}
	
	public void setSelection(int index, String selection)
	{
		if(index > -1 && index < 4)
		{
			this.selection[index] = selection;
		}
	}
	
	
	public int getAnswer()
	{
		return answer;
	}

	public void setAnswer(int answer)
	{
		if(answer > - 1 && answer < 3)
		{
			this.answer = answer;
		}
	}


	public String getImageFile()
	{
		return imageFile;
	}


	private String title, text, imageFile;
	private String[] selection = new String[4]; 
	private int answer;
}
